
package fileby.ctrl.tabs;

import com.google.inject.Inject;
import fileby.core.IDisplayableFile;
import fileby.model.IFileManager;
import fileby.model.ISelectionManager;
import javax.swing.JPopupMenu;

/**
 *
 * @author Ludwig Kjellstrom
 */
public class TabItemListenerFactory implements ITabItemListenerProvider{

    private IFileManager fileManager;
    private ISelectionManager selectionManager;

    @Inject
    public TabItemListenerFactory(IFileManager fileManager, ISelectionManager selectionManager){
        this.fileManager = fileManager;
        this.selectionManager = selectionManager;
    }

    public TabItemListener create(IDisplayableFile f, JPopupMenu popup){
        return new TabItemListener(f, popup, fileManager, selectionManager);
    }

}
